import { IApiControl, IRejectType } from '../core/BaseInterface'
import interceptors from './interceptors'
import extraCache from './extraCache'
/**
 * 全局请求流程控制参数
 */
const ApiControlConfig: IApiControl = {
    tipFn: (tipsContent: IRejectType): void => {
        if (tipsContent.type == 'error') {
            console.error('服务器正在维护...')
        } else {
            console.info(tipsContent.message)
        }
    },
    reslog: true,
    interceptors,
    extraCache
}

export default ApiControlConfig